/**
 * render list
 * 
 * @param {}
 *            value
 * @param {}
 *            cellmeta
 * @param {}
 *            record
 * @param {}
 *            rowIndex
 * @param {}
 *            columnIndex
 * @param {}
 *            store
 * @return {}
 */
function fcapplylist(value, cellmeta, record, rowIndex, columnIndex,
		store) {	
	var cm = getGridCm("fcapplylist");
	var fieldName = cm.getDataIndex(columnIndex);
	if (fieldName == 'FC_APPLYDATE') {
		return formatTime(value);
	} else if (fieldName == 'FC_AUDITSTATUS') {
		if (value == '-1') {
			return '<span style="color:red">审核未通过</span>';
		} else if (value == '0') {
			return '<span style="color:orange">待审核</span>';
		} else if (value == '1') {
			return '审核已通过';
		}
	} else if (fieldName == 'SP') {
		return '<a href="javascript:void(0);" onclick="javascript:auditFC(\''
				+ record.data['PK_ID'] + '\', \'' + record.data['FC_NAME']
				+ '\');">审批</a>';
	}

	return value;
}

function auditFC(id, name) {
	var tv = new editTableView4QueryList('fcapplylist');
	tv.initTableView('auditfcapply', id);
}